/**
 * NvWa.java
 * create by Lisq
 * date 2014-3-3
 */
package com.lsq.chou_xiang_gong_chang_mo_shi;

import com.lsq.chou_xiang_gong_chang_mo_shi.factory.FemaleHumanFactory;
import com.lsq.chou_xiang_gong_chang_mo_shi.factory.HumanFactory;
import com.lsq.chou_xiang_gong_chang_mo_shi.factory.MaleHumanFactory;

/**
 * @author Lisq 
 * 女娲建立起了两条生产线，分别是： 
 * 男性生产线和女性生产线
 */
public class NvWa {
	public static void main(String[] args) {
		//第一条生产线，男性生产线
		  HumanFactory maleHumanFactory = new MaleHumanFactory(); 
		//第二条生产线，女性生产线
		  HumanFactory femaleHumanFactory = new FemaleHumanFactory(); 
		//生产线建立完毕，开始生产人了:
		  Human maleYellowHuman = maleHumanFactory.createYellowHuman(); 
		  Human femaleYellowHuman = femaleHumanFactory.createYellowHuman(); 
		  maleYellowHuman.cry(); 
		  maleYellowHuman.laugh(); 
		  femaleYellowHuman.sex();
	}
}
